package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备基础信息管理对象 device_info
 *
 * @author ruoyi
 * @date 2025-03-19
 */
public class DeviceInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备唯一编号
     */
    private String deviceId;

    /**
     * 设备完整名称
     */
    @Excel(name = "设备完整名称")
    private String deviceName;

    /**
     * 设备主要用途描述
     */
    @Excel(name = "设备主要用途描述")
    private String purpose;

    /**
     * 设备图片存储路径
     */
    @Excel(name = "设备图片存储路径")
    private String imageUrl;

    /**
     * 设备所在物理位置
     */
    @Excel(name = "设备所在物理位置")
    private String location;

    /**
     * 设备负责人ID
     */
    @Excel(name = "设备负责人ID")
    private String responsiblePerson;

    /**
     * 同型号设备数量
     */
    private Long quantity;

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setResponsiblePerson(String responsiblePerson) {
        this.responsiblePerson = responsiblePerson;
    }

    public String getResponsiblePerson() {
        return responsiblePerson;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("deviceId", getDeviceId())
                .append("deviceName", getDeviceName())
                .append("purpose", getPurpose())
                .append("imageUrl", getImageUrl())
                .append("location", getLocation())
                .append("responsiblePerson", getResponsiblePerson())
                .append("quantity", getQuantity())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}
